export default [
  {
    path: '/user',
    layout: false,
    routes: [{ name: '登录', path: '/user/login', component: './User/Login' }],
  },
  { path: '/main', name: '', component: './main', layout: false },
  { path: '/dataDoc', name: '知识库', component: './dataDoc', access: 'hasPermissons' },
  // { path: '/dataQuestion', name: '知识库', component: './dataQuestion', access: 'hasPermissons' },
  { path: '/write', name: '写作共享实习生', component: './write', access: 'hasPermissons' },
  {
    path: '/writeHome',
    name: '写作共享实习生',
    component: './writeHome',
    access: 'hasPermissons',
  },
  { path: '/docList', name: '写作共享实习生', component: './docList', access: 'hasPermissons' },
  { path: '/allArticle', name: '全部文章', component: './allArticle', access: 'hasPermissons' },
  { path: '/spaceHome', name: 'AI大脑空间', component: './spaceHome', access: 'hasPermissons' },
  { path: '/spaceData', name: 'AI大脑空间', component: './spaceData', access: 'hasPermissons' },
  {
    path: '/conversationInit',
    name: '写作共享实习生',
    component: './conversationInit',
    access: 'hasPermissons',
  },
  {
    path: '/conversation',
    name: '活动致词',
    component: './conversation',
    access: 'hasPermissons',
  },
  {
    path: '/highClassWrite',
    name: '自由写作',
    component: './highClassWrite',
  },
  {
    path: '/departmentSpace',
    name: 'AI大脑空间',
    component: './departmentSpace',
  },
  { path: '/visitingCard', name: 'AI名片', component: './visitingCard', access: 'hasPermissons' },
  { path: '/chatBot', name: '机器人', component: './chatBot', access: 'hasPermissons' },
  { path: '/guides', name: '测试规则', component: './guides', access: 'hasPermissons' },
  // { path: '/evaluationDoc', name: '评价文档', component: './evaluationDoc' },
  { path: '/', redirect: '/main' },
  { path: '*', layout: false, component: './404' },
];
